
cmake_minimum_required(VERSION 2.8)

#### TO COMPILE WITH DEBUG BUILDING TYPE, USE: 
#### > cmake -DCMAKE_BUILD_TYPE=Debug ..

PROJECT(ps)

find_package(VTK REQUIRED)
include(${VTK_USE_FILE})

set(SOURCESLIBPS ps.cpp)
set(SOURCESLIBVIEWER Chart.cpp FunctionChart.cpp GaussianMixtureChart.cpp FunctionAndPointsChart.cpp Viewer.cpp)
set(EXSOURCES ps_test.cpp)

add_library(ps ${SOURCESLIBPS})
add_library(viewer ${SOURCESLIBVIEWER})
add_executable(ps_test ${EXSOURCES})

set(LIBRARY_OUTPUT_PATH "../")
set(EXECUTABLE_OUTPUT_PATH "../")

target_link_libraries(ps_test viewer ps)

if(VTK_LIBRARIES)
	target_link_libraries(ps_test ${VTK_LIBRARIES})
else()
	target_link_libraries(ps_test vtkHybrid vtkWidgets)
endif()
